export const projectQuestionColumn = [
  {
    displayName: '问题描述',
    name: 'questionDesc',
    key: 'questionDesc'
  },
  {
    displayName: '初步整改方案',
    name: 'actions',
    key: 'actions'
  },
  {
    displayName: '责任人',
    name: 'zp',
    key: 'zp'
  },
  {
    displayName: '提出人',
    name: 'tp',
    key: 'tp'
  },
]
export const tabPaneData = [
  {
    tagId: 'projectQuestion',
    displayName: '项目问题',
    tagName: '项目问题',
    tagEnName:'projectQuestion',
    filterData: [
      {
        name: '选择日期',
        enName:'selectData',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      }
    ],
    columnWidth: 30,
    columnData: projectQuestionColumn
  },
  {
    tagId: 'projectRisk',
    tagName: '项目风险',
    displayName: '项目风险',
    tagEnName:'projectRisk',
    filterData: [
      {
        name: '选择日期',
        enName:'selectData',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
    ]
  },
  {
    tagId: 'planningProject',
    tagName: '规划项目',
    displayName: '规划项目',
    tagEnName:'planningProject',
    filterData: [
      {
        name: '事业部',
        formType: 'select',
        selects: [],
        value:'',
      },
      {
        name: '研究院',
        formType: 'select',
        selects: [],
        value:'',
      },
      {
        name: '规划年份',
        formType: 'DateYear',
        value:getNowFormatDate('y').toString()
      }
    ]
  },
  {
    tagId: 'temporaryIndicators',
    tagName: '临时指标',
    displayName: '临时指标',
    tagEnName:'temporaryIndicators',
    filterData: [
      {
        name: '项目大类',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        name: '指标类别',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        multiple: true,
        name: '选择部门',
        selects: [],
        formType: 'select',
        value:[],
      }
    ]
  },
  {
    tagId: 'projectNode',
    tagName: '项目节点',
    displayName: '项目节点',
    tagEnName:'projectNode',
    filterData: [
      {
        formType: 'select',
        name: '项目大类',
        multiple:true,
        value:[],
        selects: [],
      },
      {
        name: '项目小类',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        formType: 'select',
        name: '选择部门',
        multiple: true,
        selects: [],
        value:[],
      },
      {
        formType: 'DateRange',
        name: '选择日期',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      }
    ]
  },
  {
    tagId: 'monthlyProjectSynthesis',
    tagName: '部门月度项目综合',
    displayName: '部门月度项目综合',
    tagEnName:'monthlyProjectSynthesis',
    filterData: [
      {
        name: '选择部门',
        formType: 'select',
        multiple: true,
        selects: [],
        value:[],
      },
      {
        name: '选择时间',
        formType: 'DateMonth',
        value:getNowFormatDate('m'),
      }
    ]
  },
  {
    tagId: 'projectSynthesis',
    tagName: '项目综合',
    displayName: '项目综合',
    tagEnName:'projectSynthesis',
    filterData: [
      {
        
        formType: 'select',
        name: '项目大类',
        multiple:true,
        value:[],
        selects: [],
      },
      {
        name: '重要等级',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        formType: 'select',
        name: '项目状态',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        formType: 'DateRange',
        name: '选择日期',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        formType: 'select',
        multiple: true,
        selects: [],
        value:[],
      }
    ]
  },
  {
    tagId: 'designRepair',
    tagName: '设计返修',
    displayName: '设计返修',
    tagEnName:'designRepair',
    filterData: [
      {
        name: '项目大类',
        formType: 'select',
        multiple:true,
        value:[],
        selects: [],
      },
      {
        name: '项目名称',
        selects: [],
        value:'',
        formType: 'text',
      },
      {
        name: '项目状态',
        selects: [],
        multiple:true,
        value:[],
        formType: 'select',
      },
      {
        name: '选择日期',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        formType: 'select',
        multiple: true,
        selects: [],
        value:[],
      }
    ]
  },
  {
    tagId: 'departmentPerformance',
    tagName: '部门绩效',
    displayName: '部门绩效',
    tagEnName:'departmentPerformance',
    filterData: [
      {
        formType: 'DateRange',
        name: '选择日期',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      }
    ]
  },
  {
    tagId: 'projectChange',
    tagName: '项目变更',
    displayName: '项目变更',
    tagEnName:'projectChange',
    filterData: [
      {
        name: '项目大类',
        multiple:true,
        value:[],
        formType: 'select',
        selects: [],
      },
      {
        name: '变更类型',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        name: '变更状态',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        name: '选择日期',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        multiple:true,
        value:[],
        formType: 'select',
        selects: [],
      }
    ]
  },
  {
    tagId: 'projectQuality',
    tagName: '项目质量',
    displayName: '项目质量',
    tagEnName:'projectQuality',
    filterData: [
      {
        formType: 'select',
        selects: [],
        name: '项目大类',
        multiple:true,
        value:[],
      },
      {
        name: '重要等级',
        selects: [],
        multiple:true,
        value:[],
        formType: 'select',
      },
      {
        name: '项目状态',
        formType: 'select',
        selects: [],
        multiple:true,
        value:[],
      },
      {
        name: '选择日期',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        formType: 'select',
        selects: [],
        value:[],
        multiple:true,
      }
    ]
  },
  {
    tagId: 'projectIndexDetails',
    tagName: '项目指标详情',
    displayName: '项目指标详情',
    tagEnName:'projectIndexDetails',
    filterData: [
      {
        selects: [],
        name: '项目大类',
        formType: 'select',
        value:[],
        multiple:true,
      },
      {
        name: '选择日期',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        name: '选择部门',
        multiple: true,
        selects: [],
        formType: 'select',
        value:[],
      }
    ]
  },
  {
    tagId: 'projectFullNode',
    tagName: '项目全节点',
    displayName: '项目全节点',
    tagEnName:'projectFullNode',
    filterData: [
      {
        formType: 'select',
        name: '项目大类',
        selects: [],
        value:[],
        multiple:true,
      },
      {
        value:'',
        name: '项目名称',
        formType: 'text',
        selects: [],
      },
      {
        name: '选择日期',
        formType: 'DateRange',
        value:[getNowFormatDate('d'),getNowFormatDate('d')],
      },
      {
        multiple: true,
        name: '选择部门',
        formType: 'select',
        selects: [],
        value:[],
      }
    ]
  },
  {
    tagId: 'projectDeliverables',
    tagName: '项目交付物',
    displayName: '项目交付物',
    tagEnName:'projectDeliverables',
    filterData: [
      {
        selects: [],
        name: '项目大类',
        formType: 'select',
        value:[],
        multiple:true,
      },
      {
        name: '项目名称',
        selects: [],
        value:'',
        formType: 'text',
      },
      {
        name: '选择部门',
        formType: 'select',
        multiple: true,
        selects: [],
        value:[],
      }
    ]
  },
]
export function getNowFormatDate(val) {
  var date = new Date();
  var seperator1 = "/";
  var year = date.getFullYear();
  var month = date.getMonth() + 1;
  var strDate = date.getDate();
  if (month >= 1 && month <= 9) {
      month = "0" + month;
  }
  if (strDate >= 0 && strDate <= 9) {
      strDate = "0" + strDate;
  }
  var currentdate = ""
  if(val=='d'){
    currentdate = year + seperator1 + month + seperator1 + strDate;
  }else if(val=='m'){
    currentdate = year + seperator1 + month;
  }else if(val=='y'){
    currentdate = year;
  }
  return currentdate;
}
export const columnsData = [{
  //项目问题
  projectQuestion:[
    {
      url: true,
      name:'projectShortName',
      displayName: '项目编号',
      dataIndex:'projectShortName',
      key: 'projectShortName',
      scopedSlots: {
        customRender: "projectShortName",
      },
    },
    {
      dataIndex:'projectName',
      name:'projectName',
      key: 'projectName',
      displayName: '项目名称',
      ellipsis: true,
    },
    {
      key: 'projectIssueName',
      dataIndex:'projectIssueName',
      name:'projectIssueName',
      ellipsis: true,
      displayName: '问题名称',
    },
    {
      name:'issueStatus',
      displayName: '问题状态',
      key: 'issueStatus',
      dataIndex:'issueStatus',
      ellipsis: true,
    },
    {
      key: 'createName',
      name:'createName',
      dataIndex:'createName',
      displayName: '创建人',
      
      ellipsis: true,
    },
    {
      key: 'createNo',
      name:'createNo',
      dataIndex:'createNo',
      displayName: '创建人账号',
      ellipsis: true,
    },
    {
      name:'createDate',
      dataIndex:'createDate',
      displayName: '创建时间',
      key: 'createDate',
      ellipsis: true,
    },
    {
      dataIndex:'expectedSolutionDate',
      key: 'expectedSolutionDate',
      displayName: '期望的解决时间',
      name:'expectedSolutionDate',
      ellipsis: true,
    },
    {
      key: 'solutionDate',
      displayName: '实际解决时间',
      name:'solutionDate',
      ellipsis: true,
      dataIndex:'solutionDate',
    },
    {
      name:'dept',
      displayName: '研究院',
      key: 'dept',
      ellipsis: true,
      dataIndex:'dept',
    },
    {
      dataIndex:'changeDate',
      key: 'changeDate',
      ellipsis: true,
      displayName: '项目状态设置时间',
      name:'changeDate',
    }
  ],
  //项目风险
  projectRisk:[
    {
      key: 'projectShortName',
      displayName: '项目编号',
      dataIndex:'projectShortName',
      name:'projectShortName',
      url: true,
      scopedSlots: {
          customRender: "projectShortName",
        },
    },
    {
      dataIndex:'projectName',
      key: 'projectName',
      name:'projectName',
      displayName: '项目名称',
      ellipsis: true,
    },
    {
      dataIndex:'projectRiskName',
      displayName: '风险名称',
      name:'projectRiskName',
      key: 'projectRiskName',
      ellipsis: true,
    },
    {
      key: 'riskStatus',
      name:'riskStatus',
      displayName: '风险状态',
      dataIndex:'riskStatus',
      ellipsis: true,
    },
    {
      name:'createName',
      dataIndex:'createName',
      key: 'createName',
      ellipsis: true,
      displayName: '创建人',
    },
    {
      name:'createNo',
      key: 'createNo',
      dataIndex:'createNo',
      displayName: '创建人账号',
      ellipsis: true,
    },
    {
      key: 'createDate',
      dataIndex:'createDate',
      name:'createDate',
      displayName: '创建时间',
      ellipsis: true,
    },
    {
      name:'expectedSolutionDate',
      dataIndex:'expectedSolutionDate',
      key: 'expectedSolutionDate',
      ellipsis: true,
      displayName: '期望的解决时间',
    },
    {
      dataIndex:'solutionDate',
      key: 'solutionDate',
      ellipsis: true,
      displayName: '实际解决时间',
      name:'solutionDate',
    },
    {
      dataIndex:'changeDate',
      key: 'changeDate',
      displayName: '项目状态设置时间',
      name:'solutionDate',
      ellipsis: true,
    }
  ],
  //规划项目
  planningProject:[
    {
      key: 'number',
      name:'number',
      dataIndex:'number',
      url: true,
      displayName: '编号',
      scopedSlots: { customRender: "number", },
    },
    {
      dataIndex:'groupName',
      key: 'groupName',
      ellipsis: true,
      displayName: '公司',
      name:'groupName',
    },
    {
      dataIndex:'institute',
      key: 'institute',
      name:'institute',
      displayName: '研究院',
      
      ellipsis: true,
    },
    {
      name:'product',
      dataIndex:'product',
      key: 'product',
      ellipsis: true,
      displayName: '产品',
    },
    {
      dataIndex:'year',
      key: 'year',
      ellipsis: true,
      displayName: '规划年份',
      name:'year',
    },
    {
      key: 'name',
      dataIndex:'name',
      name:'name',
      displayName: '规划项目名称',
      ellipsis: true,
    },
    {
      key: 'projectCategory',
      ellipsis: true,
      name:'projectCategory',
      displayName: '规划项类别',
      dataIndex:'projectCategory',
    },
    {
      dataIndex:'importantGrade',
      key: 'importantGrade',
      displayName: '规划项目级别',
      name:'importantGrade',
      ellipsis: true,
    },
    {
      key: 'planTime',
      displayName: '计划立项时间',
      dataIndex:'planTime',
      name:'planTime',
      ellipsis: true,
    },
    {
      name:'projectShortName',
      displayName: '实际项目编号',
      dataIndex:'projectShortName',
      key: 'projectShortName',
      ellipsis: true,
    },
    {
      dataIndex:'projectName',
      displayName: '实际项目名称',
      name:'projectName',
      key: 'projectName',
      ellipsis: true,
    },
  ],
  //临时指标
  temporaryIndicators:[
    {
      name:'indexType',
      displayName: '指标类别',
      dataIndex:'indexType',
      key: 'indexType',
      url: true,
    },
    {
      key: 'indexName',
      displayName: '指标名称',
      dataIndex:'indexName',
      name:'indexName',
      ellipsis: true,
      scopedSlots: {
        customRender: "name",
      },
    },
    {
      key: 'indexUnit',
      displayName: '单位',
      dataIndex:'indexUnit',
      name:'indexUnit',
      ellipsis: true,
    },
    {
      name:'projectGroup',
      displayName: '所属部门',
      dataIndex:'projectGroup',
      key: 'projectGroup',
      ellipsis: true,
    },
    {
      dataIndex:'projectType',
      displayName: '项目类型',
      name:'projectType',
      key: 'projectType',
      ellipsis: true,
    },
    {
      name:'count',
      displayName: '使用次数',
      dataIndex:'count',
      key: 'count',
      ellipsis: true,
    }
  ],
  //项目节点
  projectNode:[
    {
      key: 'projectShortName',
      displayName: '编号',
      dataIndex:'projectShortName',
      name:'projectShortName',
      url: true,
      scopedSlots: {
        customRender: "name",
      },
    },
    {
      name:'importantGrade',
      key: 'importantGrade',
      ellipsis: true,
      displayName: '项目级别',
      dataIndex:'importantGrade',
    },
    {
      key: 'projectName',
      ellipsis: true,
      name:'projectName',
      displayName: '项目名称',
      dataIndex:'projectName',
    },
    {
      key: 'mainCategory',
      dataIndex:'mainCategory',
      name:'mainCategory',
      ellipsis: true,
      displayName: '项目大类',
    },
    {
      displayName: '项目小类',
      dataIndex:'projectSmallType',
      key: 'projectSmallType',
      ellipsis: true,
      name:'projectSmallType',
    },
    {
      ellipsis: true,
      key: 'projectManager',
      displayName: '项目经理',
      dataIndex:'projectManager',
      name:'projectManager',
    },
    {
      key: 'projectGroup',
      name:'projectGroup',
      displayName: '项目所属部门',
      dataIndex:'projectGroup',
      ellipsis: true,
    },
    {
      dataIndex:'projectKeyNode',
      displayName: '关键节点名称',
      name:'projectKeyNode',
      key: 'projectKeyNode',
      ellipsis: true,
    },
    {
      ellipsis: true,
      name:'projectKeyNodeTargetTime',
      displayName: '关键节点计划完成时间',
      dataIndex:'projectKeyNodeTargetTime',
      key: 'projectKeyNodeTargetTime',
    },
    {
      name:'projectKeyNodeActualTime',
      ellipsis: true,
      key: 'projectKeyNodeActualTime',
      displayName: '关键节点实际完成时间',
      dataIndex:'projectKeyNodeActualTime',
    },
    {
      ellipsis: true,
      name:'projectKeyNodeState',
      displayName: '关键状态',
      dataIndex:'projectKeyNodeState',
      key: 'projectKeyNodeState',
    },
    {
      dataIndex:'projectFourthNodeTargetTime',
      ellipsis: true,
      name:'projectFourthNodeTargetTime',
      displayName: '四级汇总节点计划完成时间',
      key: 'projectFourthNodeTargetTime',
    },
    {
      ellipsis: true,
      dataIndex:'projectFourthNodeActualTime',
      name:'projectFourthNodeActualTime',
      key: 'projectFourthNodeActualTime',
      displayName: '四级汇总节点实际完成时间',
    }
  ],
  //项目综合
  projectSynthesis:[
    {
      key: 'projectShortName',
      displayName: '项目编码',
      dataIndex:'projectShortName',
      name:'projectShortName',
      ellipsis: true,
      scopedSlots: {
        customRender: "name"
      }
    },
    {
      dataIndex:'projectName',
      displayName: '项目名称',
      name:'projectName',
      key: 'projectName',
      ellipsis: true,
    },
    {
      dataIndex:'projectType',
      displayName: '项目类型',
      name:'projectType',
      key: 'projectType',
      ellipsis: true,
    },
    {
      name:'projectGroup',
      displayName: '组织',
      dataIndex:'projectGroup',
      key: 'projectGroup',
      ellipsis: true,
    },
    {
      key: 'healthStatus',
      ellipsis: true,
      displayName: '健康状态',
      dataIndex:'healthStatus',
      name:'healthStatus',
    },
    {
      key: 'planStartDate',
      dataIndex:'planStartDate',
      displayName: '计划开始时间',
      name:'planStartDate',
      ellipsis: true,
    },
    {
      name:'planEndDate',
      key: 'planEndDate',
      ellipsis: true,
      dataIndex:'planEndDate',
      displayName: '计划完成时间',
    },
    {
      ellipsis: true,
      name:'plannedDuration',
      displayName: '计划工期',
      dataIndex:'plannedDuration',
      key: 'plannedDuration',
    },
    {
      name:'actualStartDate',
      key: 'actualStartDate',
      displayName: '实际开始时间',
      dataIndex:'actualStartDate',
      ellipsis: true,
    },
    {
      key: 'actualEndDate',
      dataIndex:'actualEndDate',
      ellipsis: true,
      displayName: '实际完成时间',
      name:'actualEndDate',
    },
    {
      name:'actualDuration',
      dataIndex:'actualDuration',
      key: 'actualDuration',
      displayName: '实际工期',
      ellipsis: true,
    },
    {
      key: 'issueTotalCount',
      ellipsis: true,
      displayName: '问题总数',
      dataIndex:'issueTotalCount',
      name:'issueTotalCount',
      
    },
    {
      ellipsis: true,
      name:'issueClosedCount',
      dataIndex:'issueClosedCount',
      displayName: '问题关闭数量',
      key: 'issueClosedCount',
      
    },
    {
      ellipsis: true,
      dataIndex:'issueClosedRate',
      name:'issueClosedRate',
      key: 'issueClosedRate',
      displayName: '问题完成率',
    },
    {
      key: 'riskTotalCount',
      displayName: '风险总数',
      dataIndex:'riskTotalCount',
      name:'riskTotalCount',
      ellipsis: true,
    },
    {
      displayName: '风险关闭数量',
      dataIndex:'riskClosedCount',
      name:'riskClosedCount',
      key: 'riskClosedCount',
      ellipsis: true,
    },
    {
      dataIndex:'riskClosedRate',
      key: 'riskClosedRate',
      name:'riskClosedRate',
      displayName: '风险完成率',
      ellipsis: true,
    },
    {
      name:'changeTotalCount',
      ellipsis: true,
      key: 'changeTotalCount',
      displayName: '变更次数',
      dataIndex:'changeTotalCount',
    },
    {
      name:'lastChangeTime',
      key: 'lastChangeTime',
      dataIndex:'lastChangeTime',
      displayName: '最后变更时间',
      ellipsis: true,
    },
    {
      key: 'targetCost',
      displayName: '项目预算费用',
      dataIndex:'targetCost',
      name:'targetCost',
      ellipsis: true,
    },
    {
      key: 'actualCost',
      dataIndex:'actualCost',
      name:'actualCost',
      ellipsis: true,
      displayName: '项目实际费用',
    },
  ],
  //设计返修
  designRepair:[
    {
      key: 'projectName',
      displayName: '项目名称',
      dataIndex:'projectName',
      name:'projectName',
      ellipsis: true,
      scopedSlots: {
        customRender: "name"
      }
    },
    {
      name:'month',
      displayName: '月份',
      dataIndex:'month',
      key: 'month',
      url: true,
    },
    {
      displayName: '工厂',
      dataIndex:'factory',
      name:'factory',
      key: 'factory',
      ellipsis: true,
    },
    {
      name:'order',
      displayName: '订单',
      dataIndex:'order',
      key: 'order',
      ellipsis: true,
    },
    {
      key: 'description',
      dataIndex:'description',
      displayName: '说明',
      name:'description',
      ellipsis: true,
    },
    {
      ellipsis: true,
      key: 'expenses',
      displayName: '费用金额',
      dataIndex:'expenses',
      name:'expenses',
    },
    {
      key: 'department',
      displayName: '部门',
      name:'department',
      ellipsis: true,
      dataIndex:'department',
    },
    {
      name:'costType',
      key: 'costType',
      ellipsis: true,
      displayName: '科目代码',
      dataIndex:'costType',
    },
    {
      dataIndex:'costDescription',
      displayName: '科目描述',
      ellipsis: true,
      name:'costDescription',
      key: 'costDescription',
    },
    {
      dataIndex:'internalOrderNumber',
      displayName: '项目订单号/成本中心',
      name:'internalOrderNumber',
      key: 'internalOrderNumber',
      width:160,
      ellipsis: true,
    },
    {
      displayName: '备注',
      dataIndex:'remarks',
      name:'remarks',
      key: 'remarks',
      ellipsis: true,
    },   
  ],
  //部门绩效
  departmentPerformance:[
    {
      key: 'projectShortName',
      displayName: '项目编号',
      dataIndex:'projectShortName',
      name:'projectShortName',
      url: true,
      scopedSlots: {
          customRender: "name",
        },
    },
    {
      name:'resourceUserName',
      displayName: '部门成员',
      dataIndex:'resourceUserName',
      key: 'resourceUserName',
      url: true,
    },
    {
      dataIndex:'projectName',
      name:'projectName',
      key: 'projectName',
      displayName: '项目名称',
      ellipsis: true,
    },
    {
      displayName: '项目简称',
      name:'projectAbbreviation',
      key: 'projectAbbreviation',
      dataIndex:'projectAbbreviation',
      ellipsis: true,
    },
    {
      name:'plannedWorkload',
      key: 'plannedWorkload',
      dataIndex:'plannedWorkload',
      displayName: '计划工作量（工时）',
      width:160,
      ellipsis: true,
    },
    {
      displayName: '实际工作量（工时）',
      key: 'actualWorkload',
      ellipsis: true,
      width:160,
      dataIndex:'actualWorkload',
      name:'actualWorkload',
    },
    {
      key: 'completedTaskCount',
      dataIndex:'completedTaskCount',
      name:'completedTaskCount',
      ellipsis: true,
      displayName: '完成任务数',
    },
    {
      name:'closedIssueCount',
      dataIndex:'closedIssueCount',
      key: 'closedIssueCount',
      displayName: '问题关闭数量',
      ellipsis: true,
    },
    {
      ellipsis: true,
      dataIndex:'closedRiskCount',
      displayName: '风险关闭数量',
      name:'closedRiskCount',
      key: 'closedRiskCount',
    },
    {
      key: 'completedTaskRate',
      displayName: '任务完成率',
      name:'completedTaskRate',
      ellipsis: true,
      dataIndex:'completedTaskRate',
    },
    {
      dataIndex:'closedIssueRate',
      displayName: '问题完成率',
      key: 'closedIssueRate',
      ellipsis: true,
      name:'closedIssueRate',
    },
    {
      ellipsis: true,
      dataIndex:'closedRiskRate',
      name:'closedRiskRate',
      displayName: '风险完成率',
      key: 'closedRiskRate',
    },
    {
      key: 'averageComplatedRate',
      dataIndex:'averageComplatedRate',
      name:'averageComplatedRate',
      ellipsis: true,
      displayName: '平均完成率',
    } 
  ],
  //项目变更
  projectChange:[
    {
      displayName: '编码',
      dataIndex:'requestNumber',
      name:'requestNumber',
      key: 'requestNumber',
      url: true,
      scopedSlots: {
        customRender: "name",
      },
    },
    {
      name:'requestName',
      displayName: '名称',
      key: 'requestName',
      ellipsis: true,
      dataIndex:'requestName',
    },
    {
      key: 'projectName',
      name:'projectName',
      ellipsis: true,
      displayName: '项目名称',
      dataIndex:'projectName',
    },
    {
      key: 'createStamp',
      name:'createStamp',
      displayName: '变更时间',
      ellipsis: true,
      dataIndex:'createStamp',
    },
    {
      name:'planActivityName',
      dataIndex:'planActivityName',
      key: 'planActivityName',
      displayName: '变更任务',
      ellipsis: true,
    },
    {
      name:'responsibleUser',
      dataIndex:'responsibleUser',
      key: 'responsibleUser',
      displayName: '变更负责人',
      ellipsis: true,
    },
    {
      name:'requestType',
      dataIndex:'requestType',
      key: 'requestType',
      displayName: '变更类别',
      ellipsis: true,
    },
    {
      key: 'reasonForChange',
      displayName: '变更原因',
      ellipsis: true,
      dataIndex:'reasonForChange',
      name:'reasonForChange',
    },
    {
      dataIndex:'workflowNode',
      name:'workflowNode',
      displayName: '当前节点',
      key: 'workflowNode',
      ellipsis: true,
    },
    {
      key: 'changeCreator',
      displayName: '变更提出人',
      name:'changeCreator',
      dataIndex:'changeCreator',
      ellipsis: true,
    },
    {
      ellipsis: true,
      dataIndex:'changeApprover',
      name:'changeApprover',
      key: 'changeApprover',
      displayName: '变更批准人',
    },
    {
      displayName: '变更前',
      name:'beforeChange',
      key: 'beforeChange',
      dataIndex:'beforeChange',
      ellipsis: true,
    },
    {
      key: 'afterChange',
      ellipsis: true,
      displayName: '变更后',
      dataIndex:'afterChange',
      name:'afterChange',
    },
    {
      name:'changeResult',
      dataIndex:'changeResult',
      key: 'changeResult',
      ellipsis: true,
      displayName: '变更结果',
    }
  ],
  //项目质量
  projectQuality:[
    {
      name:'projectShortName',
      displayName: '编码',
      dataIndex:'projectShortName',
      key: 'projectShortName',
      url: true,
      scopedSlots: {
        customRender: "name",
      },
    },
    {
      displayName: '名称',
      dataIndex:'projectName',
      key: 'projectName',
      name:'projectName',
      ellipsis: true,
    },
    {
      dataIndex:'projectGroup',
      name:'projectGroup',
      key: 'projectGroup',
      displayName: '所属组织',
      ellipsis: true,
    },
    {
      name:'projectManager',
      dataIndex:'projectManager',
      key: 'projectManager',
      ellipsis: true,
      displayName: '项目经理',
    },
    {
      name:'projectActivityName',
      ellipsis: true,
      displayName: '里程碑节点',
      dataIndex:'projectActivityName',
      key: 'projectActivityName',
    },
    {
      displayName: '问题总数',
      key: 'issueTotalCount',
      ellipsis: true,
      dataIndex:'issueTotalCount',
      name:'issueTotalCount',
    },
    {
      ellipsis: true,
      dataIndex:'issueClosedCount',
      name:'issueClosedCount',
      displayName: '问题关闭数',
      key: 'issueClosedCount',
    },
    {
      key: 'issueOpenCount',
      ellipsis: true,
      displayName: '问题未关闭数',
      dataIndex:'issueOpenCount',
      name:'issueOpenCount',
    },
    {
      displayName: '问题完成率',
      dataIndex:'issueOnTimeRate',
      name:'issueOnTimeRate',
      key: 'issueOnTimeRate',
      ellipsis: true,
    },
    {
      ellipsis: true,
      key: 'riskTotalCount',
      displayName: '风险总数',
      dataIndex:'riskTotalCount',
      name:'riskTotalCount',
    },
    {
      name:'riskClosedCount',
      dataIndex:'riskClosedCount',
      displayName: '风险关闭数',
      key: 'riskClosedCount',
      ellipsis: true,
    },
    {
      key: 'riskOpenCount',
      ellipsis: true,
      displayName: '风险未关闭数',
      dataIndex:'riskOpenCount',
      name:'riskOpenCount',
    },
    {
      name:'riskOnTimeRate',
      displayName: '风险完成率',
      key: 'riskOnTimeRate',
      ellipsis: true,
      dataIndex:'riskOnTimeRate',
    },
    {
      key: 'internalOrderNumber',
      dataIndex:'internalOrderNumber',
      name:'internalOrderNumber',
      ellipsis: true,
      displayName: '内部订单号',
    },
    {
      dataIndex:'importantGrade',
      name:'importantGrade',
      displayName: '重要等级',
      key: 'importantGrade',
      ellipsis: true,
    },
    {
      key: 'projectSmallType',
      ellipsis: true,
      displayName: '项目小类',
      dataIndex:'projectSmallType',
      name:'projectSmallType',
    },
    {
      name:'productCategory',
      key: 'productCategory',
      displayName: '产品类别',
      dataIndex:'productCategory',
      ellipsis: true,
    },
    {
      key: 'market',
      name:'market',
      displayName: '针对市场',
      dataIndex:'market',
      ellipsis: true,
    },
    {
      key: 'priorityNum',
      displayName: '优先级',
      name:'priorityNum',
      ellipsis: true,
      dataIndex:'priorityNum',
    },
    {
      displayName: '项目状态',
      dataIndex:'projectState',
      name:'projectState',
      key: 'projectState',
      ellipsis: true,
    },
  ],
  //项目指标详情
  projectIndexDetails:[
    {
      dataIndex:'projectShortName',
      displayName: '项目编号',
      key: 'projectShortName',
      url: true,
      name:'projectShortName',
      scopedSlots: {
        customRender: "name",
      },
    },
    {
      name:'projectName',
      key: 'projectName',
      displayName: '项目名称',
      dataIndex:'projectName',
      ellipsis: true,
    },
    {
      dataIndex:'projectGroup',
      name:'projectGroup',
      key: 'projectGroup',
      displayName: '项目所属部门',
      ellipsis: true,
    },
    {
      name:'projectType',
      key: 'projectType',
      displayName: '项目大类',
      dataIndex:'projectType',
      ellipsis: true,
    },
    {
      dataIndex:'importantGrade',
      name:'importantGrade',
      displayName: '项目级别',
      key: 'importantGrade',
      ellipsis: true,
    },
    {
      name:'projectManager',
      displayName: '项目经理',
      dataIndex:'projectManager',
      key: 'projectManager',
      ellipsis: true,
    },
    {
      displayName: '项目状态',
      name:'projectState',
      dataIndex:'projectState',
      key: 'projectState',
      ellipsis: true,
    },
    {
      name:'indexType',
      displayName: '指标类型',
      dataIndex:'indexType',
      key: 'indexType',
      ellipsis: true,
    },
    {
      displayName: '指标名称',
      dataIndex:'indexName',
      name:'indexName',
      key: 'indexName',
      ellipsis: true,
    },
    {
      displayName: '指标单位',
      dataIndex:'indexUnit',
      name:'indexUnit',
      key: 'indexUnit',
      ellipsis: true,
    },
  ],
}]
import { request } from "@/utils/request";
import { getCurrentOrganizationId } from '@/utils/util.js'
const organizationId = getCurrentOrganizationId();// 当前租户ID
// 获取事业部
export function getUndertakingPartList(param) {
  return request({
    url: '/plan/Windchill/servlet/rest/hzero/pmgt/planningbook/getUndertakingPartList',
    method: 'post',
    data: param,
  })
}
// 获取研究院
export function getInstituteByGroup(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getInstituteByGroup',
    method: 'post',
    data: param,
  })
}
// 获取项目大类
export function getSubTypes(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pdm/attribute/getSubTypes',
    method: 'post',
    data: param,
  })
}
// 获取可选部门
export function getPIProjectsUserGroup(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/project/getPIProjectsUserGroup',
    method: 'post',
    data: param,
  })
}
// 获取项目小类
export function getProjectSmallTypes(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectSmallTypes',
    method: 'post',
    data: param,
  })
}
// 获取项目重要等级
export function getImportantGrades(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getImportantGrades',
    method: 'post',
    data: param,
  })
}
// 获取项目状态
export function getProjectStates(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectStates',
    method: 'post',
    data: param,
  })
}
// 获取项目变更状态
export function getChangeStates(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getChangeStates',
    method: 'post',
    data: param,
  })
}
// 获取项目变更类别
export function getChangeTypes(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getChangeTypes',
    method: 'post',
    data: param,
  })
}
//获取指标类别
export function getProjectIndexType(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectIndexType',
    method: 'post',
    data: param,
  })
}
// 获取项目节点 --hlu
export function getProjectNodesList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectNodesList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectNodesList`,
    method: 'post',
    data: parameter
  })
}
// 获取部门月度项目综合列表
export function getDepartmentMonthlyConsolidatedList(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getDepartmentMonthlyConsolidatedList',
    method: 'post',
    data: param,
  })
}
// 获取部门月度项目综合列表下载
export function departmentMonthlyConsolidatedDownload(param) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/departmentMonthlyConsolidatedDownload',
    method: 'post',
    data: param,
    responseType:'blob',
  })
}
// 获取项目全节点报表
export function exportAllNodes(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/exportAllNodes',
    method: 'post',
    data: parameter
  })
}
// 获取项目交付物报表
export function exportAllDelivers(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/exportAllDelivers',
    method: 'post',
    data: parameter
  })
}
// 获取项目问题列表 --hlu
export function getProjectIssueList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectIssueList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectIssueList`,
    method: 'post',
    data: parameter
  })
}
// 获取项目风险列表 --hlu
export function getProjectRiskList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectRiskList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectRiskList`,
    method: 'post',
    data: parameter
  })
}
// 获取临时指标列表 --hlu
export function getSpecificationIndexList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getSpecificationIndexList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getSpecificationIndexList`,
    method: 'post',
    data: parameter
  })
}
// 获取部门绩效列表
export function getDepartmentalPerformanceList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getDepartmentalPerformanceList',
    method: 'post',
    data: parameter
  })
}
// 获取项目变更列表 --hlu
export function getProjectChangeRequesList(parameter) {
  return request({
    url:'/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectChangeRequestList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectChangeRequestList`,
    method: 'post',
    data: parameter
  })
}
//  规划项目报表 --hlu
export function getPlanningProjectList(parameter) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getPlanningProjectList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getPlanningProjectList`,
    method: 'post',
    data: parameter
  })
}
//  项目综合报表
export function getProjectConsolidatedList(parameter) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectConsolidatedList',
    method: 'post',
    data: parameter
  })
}
//  设计返修报表 --hlu
export function getProjectDesignRepairList(parameter) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectDesignRepairList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getDesignRepairList`,
    method: 'post',
    data: parameter
  })
}
//  项目质量报表  --hlu
export function getProjectQualityList(parameter) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectQualityList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectQualityList`,
    method: 'post',
    data: parameter
  })
}
//  项目指标详情报表  --hlu
export function getProjectIndexList(parameter) {
  return request({
    url: '/project/Windchill/servlet/rest/hzero/pmgt/report/getProjectIndexList',
    // url: `/report/v1/${organizationId}/enterpriseReport/getProjectIndexList`,
    method: 'post',
    data: parameter
  })
}